package com.xhwl.centiotdata.service.cent;

import com.xhwl.common.dto.cent.vehicle.feign.CreateVehicleAccessRecordForInNanTouFeignDTO;
import com.xhwl.common.dto.cent.vehicle.feign.CreateVehicleAccessRecordForOutNanTouFeignDTO;
import com.xhwl.common.dto.cent.vehicle.feign.CreateVehicleAccessRecordsForInFeignDTO;
import com.xhwl.common.dto.cent.vehicle.feign.CreateVehicleAccessRecordsForOutFeignDTO;
import com.xhwl.common.pojo.cent.vehicle.bo.http.ParkingLotPayRecordBO;
import com.xhwl.common.pojo.cent.vehicle.bo.http.PayRecordBO;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;

import java.util.List;

@FeignClient(name = "cent-vehicle")
public interface IVehicleCentService {

    @RequestLine(value = "POST /vehicle-feign/access-record-for-in/add")
    void addAccessRecordsForIn(@Param("in") CreateVehicleAccessRecordsForInFeignDTO createVehicleAccessRecordsForInFeignDTO);

    @RequestLine(value = "POST /vehicle-feign/access-record-for-out/add")
    void addAccessRecordsForOut(@Param("out") CreateVehicleAccessRecordsForOutFeignDTO createVehicleAccessRecordsForOutFeignDTO);

    @RequestLine(value = "POST /vehicle-feign/nan-tou/access-record-for-in/add")
    void addAccessRecordsForIn(@Param("in")List<CreateVehicleAccessRecordForInNanTouFeignDTO> createVehicleAccessRecordForInNanTouFeignDTOList);

    @RequestLine(value = "POST /vehicle-feign/nan-tou/access-record-for-out/add")
    void addAccessRecordsForOut(@Param("out")List<CreateVehicleAccessRecordForOutNanTouFeignDTO> createVehicleAccessRecordForOutNanTouFeignDTOList);

    @RequestLine(value = "POST /vehicle-feign/pay-record/add")
    void addPayRecords(@Param("pay")ParkingLotPayRecordBO parkingLotPayRecordBO);

}
